package com.chance.cc.crawler.prod.command.trigger.domain.vm.pcauto;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.meta.core.bean.CrawlerMetaConstant;
import com.chance.cc.crawler.prod.command.job.domain.vm.pcauto.PCAutoCommonCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.job.domain.vm.pcauto.adhoc.PcAutoForumReplySimpleCrawlerSchedulerJob;
import com.chance.cc.crawler.prod.command.trigger.CommonCrawlerSchedulerTrigger;

/**
 * @author lt
 * @version 1.0
 * @date 2021-04-18 20:05:21
 * @email okprog@sina.com
 */
public class PcAutoSimpleCrawlerSchedulerTrigger extends CommonCrawlerSchedulerTrigger {


    public static void main(String[] args) {
        publishPcAutoCrawlerScheduleTriggerInfo(PcAutoForumReplySimpleCrawlerSchedulerJob.pcAutoScheduler());
    //  publishPcAutoCrawlerScheduleTriggerInfo(PcAutoPraiseSimpleCrawlerSchedulerJob.pcAutoScheduler());
      //  publishPcAutoCrawlerScheduleTriggerInfo(PcAutoArticleSimpleCrawlerSchedulerJob.bitAutoScheduler());
    }

    /**
     * 发布汽车之家临时采集trigger info

     */
    public static void publishPcAutoCrawlerScheduleTriggerInfo(CrawlerJob crawlerJob){

        metaServiceCommand_17.addOrUpdateScheduleCrawlerTrigger(
                crawlerJob.generateCrawlerKey(),
                crawlerJob.generateCrawlerTriggerKey(),
                PCAutoCommonCrawlerSchedulerJob.domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Simple,
                "",
                "太平洋临时采集任务执行，单次执行"
        );
    }
}
